package acm2;

class TheDrunkJailer3{
	public static void main(String[] args){
			for(;1>0;System.out.println((int)Math.sqrt(new java.util.Scanner(System.in).nextInt())));
	}
}
